<template>
  <div>
    <div v-if="userList.length > 0">
      <div v-for="(item, index) in userList" :key="index">
        <a-descriptions :title="item.userName">
        <a-descriptions-item label="userAccount">{{ item.userAccount }}</a-descriptions-item>
        <a-descriptions-item label="createdTime">{{ item.createTime }}</a-descriptions-item>
      </a-descriptions>
      </div>
    </div>
    <div v-else>
      <a-empty />
    </div>
  </div>
</template>

<script setup>
import { defineProps } from 'vue';

const props = defineProps({
  userList: {
    type: Array,
    required: true,
  }
})

</script>

<style lang="scss" scoped>
</style>
